﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Configuration;
using System.Configuration;
using System.Web.Configuration;

namespace MvcEngine.Core.Services
{
    public class EmailService : IEmailService
    {
        #region IEmailService Members

        //TODO: Must be per website
        public EmailSettings GetSettings()
        {
            EmailSettings settings = new EmailSettings();
            settings.Host = SiteContext.Current.Site.SmtpServer;
            settings.Port = SiteContext.Current.Site.SmtpServerPort;
            settings.UserName = SiteContext.Current.Site.SmtpUserName;
            settings.Password = SiteContext.Current.Site.SmtpPassword;
            settings.Email = SiteContext.Current.Site.Email;
            return settings;
        }

        #endregion
    }
}
